#ifndef INC_SHELLCMD_H_
#define INC_SHELLCMD_H_

#include "basic_types.h"
#include "stm32_os_list.h"
#include "string.h"
#include "stdlib.h"
#include "stdio.h"
typedef struct
{
	struct stm32_list_head head;
	void (*run)(int argc, char **argv);
	bool (*match)(char *cmd);
	void (*help)();
}SHELL_CMD;

void registCmd(SHELL_CMD *sc);
bool matchCmd(char *cmd, char *fullCmd);
#endif /* INC_SHELLCMD_H_ */
